﻿using RuoVea.ExEnum;
using RuoVea.ExSugar.Entity;
using SqlSugar;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;

namespace RuoVea.OmiApp.Template.Entitys;

/// <summary>
/// 字典值表
/// </summary>
[SugarTable("sys_dict_value")]
[Description("字典值表")]
[Tenant("0")]
public class SysDictValue : EntityBase
{
    /// <summary>
    /// 字典类型Id
    /// </summary>
    public long TypeId { get; set; }

    /// <summary>
    /// 编码
    /// </summary>
    [MaxLength(50)]
    public string Code { get; set; }

    /// <summary>
    /// 值
    /// </summary>
    [MaxLength(100)]
    public string Value { get; set; }

    /// <summary>
    /// 排序
    /// </summary>
    public int Sort { get; set; }

    /// <summary>
    /// 备注
    /// </summary>
    [MaxLength(100)]
    public string Remark { get; set; }

    /// <summary>
    /// 状态（字典 0正常 1停用 ）
    /// </summary>
    public StatusEnum? Status { get; set; } = StatusEnum.ENABLE;


    /// <summary>
    /// CssClass
    /// </summary>
    public string CssClass { get; set; } = string.Empty;
    /// <summary>
    /// ListClass
    /// </summary>
    public string ListClass { get; set; } = string.Empty;
    /// <summary>
    /// IsDefault
    /// </summary>
    public bool? IsDefault { get; set; }
}

